import type { InjectionKey, Ref } from 'vue'

export type NameType = string | number

export interface CollapseItemProps {
    name: NameType,
    title?: string,
    disabled?: boolean,
}

export interface CollapseProps {
    accordion?: boolean
}

export interface CollapseContext {
    collapseArr: Ref<NameType[]>,
    handleCollapseArr: (name: NameType) => void,
}

export const collapseKey: InjectionKey<CollapseContext> = Symbol('collapseKey')

